/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bakerylamport;

import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author renxx
 */
public class Prueba {
    
    public static void main(String[] args){
        List<Integer> listaCommit = new LinkedList<>();
        listaCommit.add(5);
        listaCommit.add(12);
        System.out.println("contiene 5? " + listaCommit.contains(5));
        listaCommit.remove(new Integer(5));
        System.out.println("contiene 5?" + listaCommit.contains(5));
        
        long t1 = System.currentTimeMillis();
        System.out.println("tiempo 1 = " + t1);
        for (int i = 0; i < 1000000000; i++) {
            for (int j = 0; j < 1000000000; j++) {

            }    
        }
        long t2 = System.currentTimeMillis();
        System.out.println("tiempo 2 = " + t2);
        long diferencia = t2 - t1;
        System.out.println("paso = " + diferencia);
    }
}
